﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Messhall.Framework.Domain.DomainObject;

namespace Messhall.Domain.System.BusinessObjects
{
    public class UserRole : EntityBoBase
    {
        #region 成员变量
        /// <summary>
        /// 用户Id
        /// </summary>
        public Guid UserKeyId { get; private set; }

        /// <summary>
        /// 角色Id
        /// </summary>
        public Guid RoleKeyId { get; private set; }

        #endregion

        public UserRole(Guid roleKeyId, Guid userKeyId)
        {
            RoleKeyId = userKeyId;
            UserKeyId = roleKeyId;
        }

        public void SetUserKeyId(Guid userKeyId)
        {
            UserKeyId = userKeyId;
        }

        public void SetRoleKeyId(Guid roleKeyId)
        {
            RoleKeyId = roleKeyId;
        }
    }
}
